﻿Partial Public Class TestAvatarSelector
    Private _ViewModel As ImageSelectorViewModel

    Public Sub New()
        _ViewModel = New AvatarSelectorViewModel(Nothing)

        InitializeComponent()

        App.DefaultWindowStyle.Attach(Me)
    End Sub

    Public ReadOnly Property ViewModel() As ImageSelectorViewModel
        Get
            Return _ViewModel
        End Get
    End Property

    Private Sub OnAddNewImageClick(ByVal sender As Object, ByVal e As RoutedEventArgs)
        ViewModel.AddImageFile()
    End Sub

    Private Sub OnSelectImageClick(ByVal sender As Object, ByVal e As RoutedEventArgs)
        'TODO: Select logic

        ViewModel.SelectImageFile()
    End Sub

    Private Sub OnCancelSelectClick(ByVal sender As Object, ByVal e As RoutedEventArgs)
        'TODO: Cancel logic
    End Sub
End Class